﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoreEx.Database.Query
{
    /// <summary>
    /// 
    /// </summary>
    public enum SortDirection
    {
        Ascending,
        Descending
    }

    /// <summary>
    /// Represents a sorting order for a database query
    /// </summary>
    public interface IOrderByExpression : IExpression
    {
        /// <summary>
        /// Gets or sets the <see cref="IExpression"/> that will be used to sort the resultset.
        /// </summary>
        IExpression Target { get; set; }
        
        /// <summary>
        /// Gets or sets the <see cref="SortDirection"/>.
        /// </summary>
        SortDirection Direction { get; set; }
    }
}
